package day_02;

public class Test01 {

    public static void main(String[] args) {
        int num = 5785;
        int ge = num%10;
        int shi = num%100/10;
        int bai = num%1000/100;
        int qian = num / 1000;
        System.out.println("各位"+ge);
        System.out.println("十位"+shi);
        System.out.println("百位"+bai);
        System.out.println("千位"+qian);
    }

}